// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.*;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * BundledProduct
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "product", autoResultMap = true)
@Schema(title = "捆绑产品")
public class BundledProduct implements Serializable {

  /**
   * 品名
   */
  @TableField(value = "`name`")
  @Schema(title = "品名")
  private String name;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * 型号
   */
  @TableField(value = "`model`")
  @Schema(title = "型号")
  private String model;

  /**
   * 单位
   */
  @TableField(value = "`unit`")
  @Schema(title = "单位")
  private String unit;

  /**
   * 状态
   */
  @TableField(value = "`sales_status`")
  @Schema(title = "状态")
  private String salesStatus;

  /**
   * 分类
   */
  @TableField(value = "`classify`")
  @JoinField(Classify.class)
  @Schema(title = "分类")
  private Long classify;

  /**
   * 分类的关联标题
   */
  @Schema(title = "分类的关联标题")
  private String classifyName;

  /**
   * 品牌
   */
  @TableField(value = "`brand`")
  @JoinField(Brand.class)
  @Schema(title = "品牌")
  private Long brand;

  /**
   * 品牌的关联标题
   */
  @Schema(title = "品牌的关联标题")
  private String brandName;

  /**
   * 开发人
   */
  @TableField(value = "`developer`")
  @JoinField(SysUser.class)
  @Schema(title = "开发人")
  private Long developer;

  /**
   * 开发人的关联标题
   */
  @Schema(title = "开发人的关联标题")
  private String developerName;

  /**
   * 产品负责人
   */
  @TableField(value = "`principal`", typeHandler = JacksonTypeHandler.class)
  @JoinField(SysUser.class)
  @Schema(title = "产品负责人")
  private List<Long> principal;

  /**
   * 产品负责人的关联标题
   */
  @Schema(title = "产品负责人的关联标题")
  private String principalName;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 分组
   */
  @TableField(value = "`group`")
  @JoinField(ProductGroup.class)
  @Schema(title = "分组")
  private Long group;

  /**
   * 分组的关联标题
   */
  @Schema(title = "分组的关联标题")
  private String groupName;

  /**
   * 产品标签
   */
  @TableField(value = "`label`")
  @Schema(title = "产品标签")
  private String label;

  /**
   * 信息一
   */
  @TableField(value = "`info1`")
  @Schema(title = "信息一")
  private String info1;

  /**
   * 信息二
   */
  @TableField(value = "`info2`")
  @Schema(title = "信息二")
  private String info2;

  /**
   * 电镀颜色
   */
  @TableField(value = "`ep_color`")
  @Schema(title = "电镀颜色")
  private String epColor;

  /**
   * 采购成本
   */
  @TableField(value = "`procurement_cost`")
  @Schema(title = "采购成本")
  private java.math.BigDecimal procurementCost;

  /**
   * 产品描述
   */
  @TableField(value = "`product_description`")
  @Schema(title = "产品描述")
  private String productDescription;

  /**
   * 图片
   */
  @TableField(value = "`pic_url`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "图片")
  private List<SysFile> picUrl;

  /**
   * 产品类型
   */
  @TableField(value = "`type`")
  @Schema(title = "产品类型")
  private String type;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;
}
